You can call the following on a Flow
to register listeners for particular
events:
onEach()
, to be notified when an item is emitted by theFlow
onCompletion()
, to be notified when theFlow
is closed
You can learn more about this in:
Tags: